package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.LoginDao;
import com.gdk.dao.NavigationDao;
import com.gdk.service.ArticleService;
import com.gdk.service.LoginService;
import com.gdk.service.NavigationService;
import com.gdk.utils.Md5Utils;


/**
 * 导航业务处理
 * */
@Service("NavigationService")
public class NavigationServiceImpl implements NavigationService {
	@Autowired
    private NavigationDao navigationDao;

	 @Override
	public List<Map<String, Object>> selectAllNavigation() {
		return navigationDao.selectAllNavigation();
	}
	
	 @Override
	public int addNavigation(Map<String, Object> map) {
		return navigationDao.addNavigation(map);
	}
	@Override
	public Map<String, Object> selectNavigationDetails(Map<String, Object> map) {
		return navigationDao.selectNavigationDetails(map);
	}
	@Override
	public int updateNavigationDetails(Map<String, Object> map) {
		return navigationDao.updateNavigationDetails(map);
	}
	@Override
	public List<Map<String, Object>> selectAllRoute() {
		return navigationDao.selectAllRoute();
	}
	@Override
	public List<Map<String, Object>> selectAllModule() {
		return navigationDao.selectAllModule();
	}
	@Override
	public int updateModuleDetails(Map<String, Object> map) {
		return navigationDao.updateModuleDetails(map);
	}
	
	@Override
	public Map<String, Object> selectArticleModuleDetails(Map<String, Object> map) {
		return navigationDao.selectArticleModuleDetails(map);
	}
}
